package org.glut.cloud.repairManage.controller;

import org.glut.cloud.repairManage.entity.FailureRepair;
import org.glut.cloud.repairManage.service.IFailureRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 故障保修表 前端控制器
 *
 * @author weisiyuan
 * @since 2024-08-14 20:25
 */
@RestController
@RequestMapping("/failure-repair")
public class FailureRepairController {

    @Autowired
    private IFailureRepairService iFailureRepairService;

    /**
     * 根据故障报修ID查询相应报修的故障信息
     * */
    @GetMapping("/selectById/{failureRepairId}")
    public FailureRepair selectById(@PathVariable Integer failureRepairId) {

        return iFailureRepairService.selectById(failureRepairId);
    }

}
